﻿@model TalentDesk.Contracts.Ef.Project

  
    <table style="width:100%;">
        <tr>
            <td>@Html.LabelFor(p => p.ProjectName)</td>
            <td>@Html.DisplayFor(p => p.ProjectName)</td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>@Html.LabelFor(p => p.ProjectType)</td>
            <td> @(Html.Kendo().DropDownListFor(p=>p.ProjectTypeId)
            
           
              .OptionLabel("Select projecttype...")
              .DataTextField("ProjectType1")
              .DataValueField("ProjectTypeId")
              .Enable(false)
              .DataSource(source => {
                   source.Read(read => {
                       read.Action("GetProjectTypes", "CacheEnum");
                   });
              })
        )</td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>@Html.LabelFor(p => p.Progress)</td>
            <td>@Html.DisplayFor(p=>p.Progress)</td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>@Html.LabelFor(p => p.ProjectTeams)</td>
            <td colspan="3">@(Html.Kendo().MultiSelectFor(model => model.ProjectTeams)
                              .Placeholder("Select Countires")
                              .DataTextField("FirstName")
                              .Enable(false)
                              .DataValueField("UserId")
                              .Filter(FilterType.Contains)
                              .BindTo(TalentDesk.Mvc.Models.AuthenticationProxy.GetUser())
                          
                              .ItemTemplate("<img src=\"" + Url.Content("~\\Images\\User\\") + "#:data.ImageUrl# \" alt=\"#:data.UserId#\" />" +
                                            "<h3>#: data.FirstName #  #: data.LastName #</h3>")
                              .TagTemplate("<img class=\"tag-image\" src=\"" + Url.Content("~\\Images\\User\\") + "#:data.ImageUrl# \" alt=\"#:data.UserId#\" />" +
                                          "#: data.FirstName #  #: data.LastName #")
                   )</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(p => p.StartDate)</td>
            <td>@Html.Kendo().DatePickerFor(p => p.StartDate).Enable(false)</td>
            <td>@Html.LabelFor(p => p.DueDate)</td>
            <td>@Html.Kendo().DatePickerFor(p => p.DueDate).Enable(false)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(p => p.ProjectDescription)</td>
            <td colspan="3">@Html.DisplayFor(p => p.ProjectDescription)     </td>
        </tr>
        <tr>
            <td>Files</td>
            <td colspan="3">@(Html.Kendo().Grid(Model.Attachments)
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.FileName);
        columns.Bound(p => p.CreateTime).ClientTemplate("#= productDetails(data) #");
    })
    .Pageable()
    .Sortable()
    .Selectable()
    .Filterable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(20)
        .ServerOperation(false)
        .Model(model => model.Id(c => c.AttachmentId))

     )
)</td>
        </tr>
      
    </table>
           
               

   
        


